#ifndef CURLREQUEST_H
#define CURLREQUEST_H
#include "curl/curl.h"

//get请求
void sendGetRequest(char* url,size_t (*fn)(void*, size_t, size_t , void*));

//post请求
void sendPostRequest(char* url,char*parmStr,size_t (*fn)(void*, size_t, size_t , void*));

//文件下载的函数
int downloadRes(char *url,char * savleFilePath);

#endif